/********************************************************************
** filename: 	Date.cpp
****** date:	2012-10-23 14:23:27
**** author:	weide
****** memo:	
all copyright reserved by weide001@gmail.com
*********************************************************************/
//:START OF Date.cpp

#include "time/inc/Date.h"

NAMESPACE_XLIB_BGN

std::string XDate::today( const string& format /*= FORMAT_DATE*/ )
{
	return TimetToString(time(0),format,1);
}

XDate::XDate( const string& date, const string& format /*= FORMAT_DATE*/ )
{
	// @TODO: ...
}

std::string XDate::toString( const string& format /*= FORMAT_DATE*/ )
{
	return TimetToString(this->get(),format,1);
}

NAMESPACE_XLIB_END
//END OF Date.cpp //:~
